<!--
 * @Date: 2022-01-20 09:27:35
 * @LastEditors: exlimit exlimit@qq.com
 * @LastEditTime: 2022-07-16 20:23:52
 * @FilePath: \earth-manager\src\views\index.vue
-->
<template>
  <el-container class="index-con">
    <el-header class="index-header">
      <navcon></navcon>
    </el-header>
    <el-container>
      <el-aside class="leftBox">
        <leftnav></leftnav>
      </el-aside>
      <el-main clss="index-main">
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
  // 导入组件
  import navcon from "../components/navcon.vue";
  import leftnav from "../components/leftnav.vue";
  export default {
    name: "index",
    // 注册组件
    components: {
      navcon,
      leftnav,
    },
    data() {
      return {};
    },
    methods: {},
    created() { },
    beforeUpdate() { },
    beforeMount() { },
  };
</script>

<style>
  .index-con {
    height: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .aside {
    width: 64px !important;
    height: 100%;
    background-color: #334157;
    margin: 0px;
  }

  .asideshow {
    width: 240px !important;
    height: 100%;
    background-color: #334157;
    margin: 0px;
  }

  .index-header,
  .index-main {
    padding: 0px;
    border-left: 2px solid #333;
  }

  .leftBox {
    border-top: 1px #fff solid;
  }
</style>